package com.meetflow.conference.service;

import com.meetflow.conference.domain.MeetRecord;

import java.util.List;
import java.util.Map;

/**
 * 我的申请Service接口
 *
 * @author duanjj
 * @date 2024-07-12
 */
public interface IMeetRecordService {
    /**
     * 查询我的申请
     *
     * @param id 我的申请主键
     * @return 我的申请
     */
    public MeetRecord selectMeetRecordById(Long id, String taskStatus);

    public MeetRecord selectMeetRecordDetailById(Long id);

    public List<Long> getAllRecordIds(MeetRecord meetRecord);

    public Map<String, Long> getToDoNum(Long id, String userLevel);


    /**
     * 查询我的申请列表
     *
     * @param meetRecord 我的申请
     * @return 我的申请集合
     */
    public List<MeetRecord> selectMeetRecordList(MeetRecord meetRecord);
    public List<MeetRecord> selectExportMeetRecordList(MeetRecord meetRecord);

    public List<MeetRecord> selectMeetRecordListByParam(MeetRecord meetRecord);


    /**
     * 新增我的申请
     *
     * @param meetRecord 我的申请
     * @return 结果
     */
    public int insertMeetRecord(MeetRecord meetRecord);

    public int stagingApplyTask(MeetRecord meetRecord);


    /**
     * 修改我的申请
     *
     * @param meetRecord 我的申请
     * @return 结果
     */
    public int updateMeetRecord(MeetRecord meetRecord);

    public int rejectMeetRecord(MeetRecord meetRecord);
    public int updateProblemLevelMeetRecord(MeetRecord meetRecord);
    public int closeMeetRecord(MeetRecord meetRecord);
    public int acceptanceMeetRecord(MeetRecord meetRecord);

    /**
     * 批量删除我的申请
     *
     * @param ids 需要删除的我的申请主键集合
     * @return 结果
     */
    public int deleteMeetRecordByIds(Long[] ids);

    /**
     * 删除我的申请信息
     *
     * @param id 我的申请主键
     * @return 结果
     */
    public int deleteMeetRecordById(Long id);


    public void autoUpgradeProblemLevelByUpgradationTime(MeetRecord meetRecord);
}
